<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="com.pmsco.pms.core.constant.PmsConstant"%>
<%@ page import="com.pmsco.pms.util.BundleUtil"%>
<%@ include file="/WEB-INF/import/tagLibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script>
	    $(function() {
	        $("button").button();
	    });
    </script>
</head>
<body class="pmsMainBody">
	<table class="pmsMainTable">
		<tr class="pmsMainTableWrapperTd">
			<td>
			    <table class="tableForm">
			    	<input type="hidden" id="adminLogon" name="adminLogon" value="false"/>
			    	<c:if test="${logonFail == true}">
			    		<tr><td colspan="2" class="tableFormLabel" align="center"><spring:message code="logon.failMessage"/></td></tr>	
			    	</c:if>
			    	<c:if test="${warningMessage == true}">
			    		<tr><td colspan="2" class="tableFormLabelRequired" align="center"><spring:message code="logon.warningMessage"/></td></tr>	
			    	</c:if>
			    	<c:if test="${lockMessage == true}">
			    		<tr><td colspan="2" class="tableFormLabelRequired" align="center"><spring:message code="logon.lockMessage"/></td></tr>	
			    	</c:if>
			    	<tr>
						<td class="tableFormLabel"><label class="tableFormLabelRequired">*&nbsp;</label><spring:message code="user.userName"/></td>
						<td>
							<input type="text" class="talbeFormTextBox" id="userName" name="userName" value="${userName}" size="15" required/>
							<a onclick="submitAction('<%=PmsConstant.remindUsername_JspUrl%>', false)" class="pmsLink"><spring:message code="button.remindUsername"/></a>
						</td>
					</tr>
					<tr>
						<td class="tableFormLabel"><label class="tableFormLabelRequired">*&nbsp;</label><spring:message code="user.password"/></td>
						<td>
							<input type="password" class="talbeFormTextBox" id="password" name="password" value="${password}" size="15" required/>
							<a onclick="submitAction('<%=PmsConstant.forgotPassword_JspUrl%>', false)" class="pmsLink"><spring:message code="button.forgetPassword"/></a>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<table align="center">
								<tr>
									<td>
										<button class="tableFormButton" onclick="return submitAction('<%=PmsConstant.logon_JspUrl%>', true)"><spring:message code="button.logon"/></button>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>